package com.sample.rx3.ext

import android.view.View
import com.google.android.material.snackbar.Snackbar

fun View.showSnackbar(message: String) {
    Snackbar.make(this, message, Snackbar.LENGTH_SHORT).show()
}

fun View.delayClick() {
    isClickable = false
    postDelayed({ isClickable = true }, 500L)
}